<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //就是一个调用一个函数，返回一个对象    
        const instance = axios.create({
            baseURL: 'https://api.example.com',
            timeout: 1000,
            headers: { 'X-Custom-Header': 'foobar' }
        });
    </script>
</body>

</html>